package com.zpark.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @PackageName: com.zpark.controller
 * @ClassName: ConfigController
 * @Description:
 * @author: RZS
 * @date: 2022/12/13  11:14
 */
@RestController
@RequestMapping("/config")
public class ConfigController {

    @Value("${com.zpark.config}")
    private String name;

    @Value("${com.desc}")
    private String desc;

    @RequestMapping("/name")
    public String getConfig(){
        return name;
    }

    @RequestMapping("/desc")
    public String getOther(){
        return desc;
    }
}
